package com.ls.fw.mvc.springmvc.handler;

import com.ls.fw.data.bean.BaseDataEntity;

public interface ModelHandler {

	/**
	 * 
	 * @param t
	 * @return
	 */
	public  <T extends BaseDataEntity> T forUpdate(T t);
	
	/**
	 * 
	 * @param t
	 * @return
	 */
	public  <T extends BaseDataEntity> T forAdd(T t);
	

	/**
	 * 
	 * @param t
	 * @return
	 */
	public  <T extends BaseDataEntity> T forModel(T t);
	

	/**
	 * 
	 * @param t
	 * @return
	 */
	public  Object forModel(Object obj);
}
